package com.wjggy.core.service.user;

import java.util.List;

import javax.servlet.http.HttpServletResponse;

import com.wjggy.core.common.page.Page;
import com.wjggy.core.entities.User;


 /**
 *  <p>Description:  </p>
 *  <p>Copyright:Copyright (c) 2012  </p>
 *  <p>Company:wjggy  </p>
 *  @author xiaofan.yu  
 *  @date   2012-1-9 上午10:41:46    
 *  @project  wjggy
 *  @version  1.0.0
 *  @see   
 *  @since 1.6 
 */
public interface ManageUserService {
	 
 /**
  * 
  *  @describe  帐号添加
  *  @param resonse
  *  @param admin
  *  @param addAuthCode 验证码
  *  @return 0账号存在 1注册成功 2验证码错误 
  */
	public int addUser(HttpServletResponse response,User admin,String addAuthCode);
	
	public List<User> getUsers(Page page);
	
	public boolean saveUser(User user);
	
	public User getUserById(Long id);
	
	public boolean updateUser(User user);
	
	public boolean deleteUser(Long id);
}

